package org.spring.qq_chat_java.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.EnumOrdinalTypeHandler;
import org.spring.qq_chat_java.constant.friend.friendStatus;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("friend")
// 好友关系表
public class friend {
    @TableId(type = IdType.AUTO)
    private Long relationId;
    private Long userId;
    private Long friendId;
    private String friendGroup;  //分组名称
    @TableField(typeHandler = EnumOrdinalTypeHandler.class)
    private friendStatus status; //好友状态
    private LocalDateTime createdTime;

}
